package com.baidu.day02;

import java.io.File;

public class Demo08 {
    public static void main(String[] args) {

        // file.delete();
        // System.out.println(file.isFile());
        //System.out.println(file.isDirectory());
       // boolean flag = file.mkdir();
        //System.out.println(flag ? "创建成功" : "创建失败");
        createFile();
    }

    public static void createFile() {

        for (int i = 0; i < 10; i++) {
            File file = new File("C:\\Users\\DAJU\\Desktop\\新建文件夹 (2)\\" + i);
            boolean flag = file.mkdir();
            System.out.println(flag?"创建成功":"创建失败");
        }
    }

}
